-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Add rewrite
support for gradle.GradleBestPractices
#10731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Thanks for your pull request! This pull request does not follow the contribution rules. Could you have a look? ❌ All commit messages should start with a JIRA issue key matching pattern › This message was automatically generated. |
Is this any good? Kindly request some feedback. To pitch this, as there is no issue or discussion section for me enabled to post, im providing the issue the PoC in one thread. Please excuse this. Thanks for considering. |
errorprone.refasterrules
rewrite
support for tech.picnic.errorprone.refasterrules.FileRulesRecipes
BUILD SUCCESSFUL |
...c/test/java/org/hibernate/orm/test/annotations/onetoone/OneToOneJoinTableUniquenessTest.java
Outdated
Show resolved
Hide resolved
rewrite
support for tech.picnic.errorprone.refasterrules.FileRulesRecipes
rewrite
support for org.openrewrite.gradle.GradleBestPractices
rewrite
support for org.openrewrite.gradle.GradleBestPractices
rewrite
support for gradle.GradleBestPractices
...-community-dialects/src/test/java/org/hibernate/community/dialect/AltibaseFunctionsTest.java
Show resolved
Hide resolved
We're not interested in this at this time. I'm going to close this. |
Add
rewrite
support forgradle.GradleBestPractices
I’d like to propose integrating Google’s Error Prone and its Picnic extension (demonstrated in Automating Away Bugs with Error Prone | PlatformCon 2023) to enable automated bug fixes via
rewrite
rules. This would complement Checkstyle’s static analysis capabilities by addressing semantic bugs rather than stylistic issues.Motivation
Error Prone’s
refaster
/rewrite
rules can automatically:String.equals()
misuse)Real-world adoptions show tangible benefits:
rewrite
support checkstyle/checkstyle#17545rewrite
support forerrorprone.refasterrules
pmd/pmd#5956rewrite
support forRemoveUnusedPrivateMethods
&RemoveUnusedImports
opensearch-project/OpenSearch#18791rewrite
support forerrorprone.refasterrules
diffplug/spotless#2576rewrite
support forerrorprone.refasterrules
apache/kafka#20219Proposal
errorprone.refasterrules
-based rewritesDiscussion Points
Next Steps
I’m happy to:
relates to:
editorconfig.org
checkstyle/checkstyle#16543Hi
Is this any good?
Might consider these changes suggested by
error.prone
.Thanks.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.